package com.ctibook.booksystem.vo.bookcatalog;

import java.util.Date;

import org.springframework.beans.BeanUtils;

import com.ctibook.booksystem.model.bookcatalog.BookInfoUploadFileRecord;

public class BookInfoUploadFileRecordVO {
	private String id;
	/**
	 * 文件名称（相对路径）
	 */
	private String fileName;
	
	/**
	 * 文件类型
	 */
	private String fileType=".zip";
	/**
	 * 创建人
	 */
	private String creatorId;

	/**
	 * 创建人姓名
	 */
	private String creatorName;

		
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 是否已解析
	 */
	private boolean parsed;
	/**
	 * 是否解析成功
	 */
	private boolean parseSuccess;
	/**
	 * 是否校验ISBN
	 */
	private boolean checkedIsbn;
	/**
	 * 错误信息
	 */
	private String errorMsg;

	/**
	 * marc总记录数
	 */
	private int totalMarcRecordCount=0;

	/**
	 * 正确解析记录数
	 */
	private int correctMarcRecordCount=0;

	/**
	 * 数据库中不存在添加到数据库中的记录数
	 */
	private int intoDbMarcRecordCount=0;

	
	
	public BookInfoUploadFileRecordVO() {
	}
	
	public BookInfoUploadFileRecordVO(BookInfoUploadFileRecord record) {
		BeanUtils.copyProperties(record, this);
	}
	
	public int getCorrectMarcRecordCount() {
		return correctMarcRecordCount;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public String getCreatorId() {
		return creatorId;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public String getFileName() {
		return fileName;
	}
	
	public String getFileType() {
		return fileType;
	}

	public String getId() {
		return id;
	}

	public int getIntoDbMarcRecordCount() {
		return intoDbMarcRecordCount;
	}

	public boolean getParsed() {
		return parsed;
	}

	public boolean getParseSuccess() {
		return parseSuccess;
	}

	public int getTotalMarcRecordCount() {
		return totalMarcRecordCount;
	}

	public void setCorrectMarcRecordCount(int correctMarcRecordCount) {
		this.correctMarcRecordCount = correctMarcRecordCount;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public void setId(String id) {
		this.id = id;
	};
	public void setIntoDbMarcRecordCount(int intoDbMarcRecordCount) {
		this.intoDbMarcRecordCount = intoDbMarcRecordCount;
	}
	
	public void setParsed(boolean parsed) {
		this.parsed = parsed;
	}
	
	public void setParseSuccess(boolean parseSuccess) {
		this.parseSuccess = parseSuccess;
	}
	
	public void setTotalMarcRecordCount(int totalMarcRecordCount) {
		this.totalMarcRecordCount = totalMarcRecordCount;
	}

	public boolean isCheckedIsbn() {
		return checkedIsbn;
	}

	public void setCheckedIsbn(boolean checkedIsbn) {
		this.checkedIsbn = checkedIsbn;
	}
}
